package zmx;

import java.util.Arrays;
import java.util.Scanner;

public class Z1 {
	

	    public static void main(String[] args) {
	       
	       
	        int[] arr = {19, 28, 37, 46, 50};
	System.out.println(Arrays.toString(reserve(arr)));
	                                 

	    }

	    public static int []  reserve(int [] arr){
	        for(int i = 0,j = arr.length - 1;i < j;i++,j--){
	            int temp = arr[j];
	            arr[j] = arr[i];
	            arr[i] = temp;
	        }
	        return arr;
	    }
	}